package com.rachel.testjetpack.bean;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.rachel.testjetpack.BR;

public class User extends BaseObservable {

    private String userName;
    private String userColor;

    public User(String userName, String userGender) {
        this.userName = userName;
        this.userColor = userGender;
    }

    @Bindable
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
        notifyPropertyChanged(BR.userName);

    }

    @Bindable
    public String getUserColor() {
        return userColor;
    }

    public void setUserColor(String userColor) {
        this.userColor = userColor;
        notifyPropertyChanged(BR.userColor);
    }
}